package com.by.entity.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("attr")
public class Attr {

    @TableField("attr_id")
    @ApiModelProperty(name = "attr id",notes = "")
    private Integer attrId ;
    /** 店铺Id */
    @ApiModelProperty(name = "店铺Id",notes = "")
    private Integer shopId ;
    /** 属性名称 */
    @ApiModelProperty(name = "属性名称",notes = "")
    private String name ;
    /** 属性描述 */
    @ApiModelProperty(name = "属性描述",notes = "")
    private String descr ;
    /** 0:不需要，1:需要 */
    @ApiModelProperty(name = "0:不需要，1:需要",notes = "")
    private int searchType ;
    /** 0:销售属性，1:基本属性 */
    @ApiModelProperty(name = "0:销售属性，1:基本属性",notes = "")
    private int attrType ;

    @ApiModelProperty(name = "规格属性值列表")
    @TableField(exist = false)
    List<AttrValue> attrValueList;

}
